<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'id', width:60, unresize:true, sort:true, align:'center'}">ID</th>
        <th lay-data="{field:'ServCategName', width:160, unresize:true, align:'center'}">服务分类</th>
        <th lay-data="{field:'name', width:160,unresize:true, align:'center'}">后台一级分类</th>
        <th lay-data="{field:'servCategName', width:160, unresize:true, align:'center'}">后台二级分类</th>
        <th lay-data="{field:'categOneName', unresize:true, align:'center'}">关联后台产品</th>
        <th lay-data="{field:'status',width:160, unresize:true, align:'center'}">后台产品状态</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.id}">id</td>
        <td th:text="${item.servCategName}" class="">servCategName</td>
        <td th:text="${item.categOneName}" class="layui-gray">categOneName</td>
        <td th:text="${item.categName}" class="layui-gray">categName</td>
        <td th:text="${item.name}" class="layui-gray">name</td>
        <td th:switch="${item.status}" class="layui-gray">
            <div th:case="1">下架</div>
            <div th:case="2">上架</div>
        </td>
    </tr>
    </tbody>
</table>
